<div class="login-container flex-center position-ref full-height">
    <div class="container">
        <div class="row">
        <div class="col-md-6 offset-md-3">
            <div *ngIf="reset == false" class="card login-card">
                <h1 class="title">Global Access</h1>

                <div class="d-flex align-items-center">
                    <p class="sub-title mr-auto">Enter your new password below and press login to access Sustainalytics’ Global Access Platform</p>
                </div>

                <div class="form-group">
                    <input type="password" class="form-control text-input" name="pass" [(ngModel)]="password" placeholder="Password" required />
                </div>
                <div class="form-group">
                    <input type="password" class="form-control text-input" name="pass" [(ngModel)]="confirm" placeholder="Confirm" required/>
                </div>
                <div class="form-group">
                    <button class="btn btn-block sign-in-btn" [disabled]="!valid || sent == true" (click)="changePass()">Change Password</button>
                </div>   
                <div class="form-group">
                    The password format is the following:
                    <ul>
                        <li *ngFor="let condition of conditions; let index = index" [ngClass]="(conditionValid(index) ? 'confirmed' : 'notConfirmed')">{{condition.text}}</li>        
                    </ul>   
                </div>             
            </div>
            <div *ngIf="reset == true" class="card login-card">
                <h1 class="title">Global Access</h1>
                <div class="d-flex align-items-center">
                    <h3 class="sub-title mr-auto">
                        Your password has been successfully changed <br /><br />
                        <a [routerLink]="['/login']" class="big-link">Return to the login page</a>
                    </h3>
                </div>
            </div>
            <div class="mt-3 ml-5 mr-5">
                <span class="small float-left ml-4">&copy; Sustainalytics. All Rights Reserved.</span>
                <a class="small float-right mr-4" href="https://www.sustainalytics.com/about-us" target="_blank">About Sustainalytics</a>
            </div>
        </div>
        </div>
    </div>
</div>
